from django.contrib.auth.models import User
from django.contrib.auth.admin import UserAdmin
from django import forms


class UserLoginForm(forms.ModelForm):
    username = forms.CharField(widget=forms.TextInput(),label='用户')
    password = forms.CharField(widget=forms.PasswordInput,label='密码')
    class Meta:
        model = User
        fields = ('username', 'password')
        widgets = {}